package com.test.service;

import com.test.entities.HandDepartments;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author dell
 */
public interface DeptService {
    /**
     * 查找全部部门的信息
     * @return
     */
    public List<HandDepartments> findAll();

    /**
     * 根据id查找部门信息
     * @param departmentId
     * @return
     */
    public HandDepartments findById(Long departmentId);

    /**
     * 新增部门信息
     * @param departments
     * @return
     */
    public HandDepartments addDept(HandDepartments departments);

    void delete(@Param("id")Long departmentId);
}
